-- GENERATED SPELL FOR [Stonevault Rockchewer] --


function spell0_4851(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4851', 574, 1)
end

function Sorts_4851(pUnit, Event)
local choix_sorts_4851 = math.random(0, 0)
if choix_sorts_4851 == 0 then
pUnit:RegisterEvent('spell0_4851', 1, 1)
end
end

function mob4851_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4851', math.random(1500, 3000), 1)
end

function mob4851_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4851_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4851_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4851, 1, 'mob4851_Action')
RegisterUnitEvent(4851, 2, 'mob4851_Leave')
RegisterUnitEvent(4851, 3, 'mob4851_Kill')
RegisterUnitEvent(4851, 4, 'mob4851_Die')
